home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / prog_disc / volume_5 / issue_08 / boota / C-source / h / GetDirs < prev    next >
Encoding:
Text File  |  1991-12-03  |  1.4 KB  |  34 lines

  1. /* > h.GetDirs - (c) Paul Witheridge - Version 2.0 - 03 Dec 1991     */
  2.  
  3. /*===================================================================*/
  4. /*  GetDirs header file                                              */
  5. /*===================================================================*/
  6.  
  7. typedef struct                          /* Define direntry structure */
  8. {
  9.   int load ;                            /* File load address         */
  10.   int exec ;                            /* File execution address    */
  11.   int length ;                          /* File length               */
  12.   int attr ;                            /* File attributes           */
  13.   int type ;                            /* File type                 */
  14.   char *name ;                          /* Object name               */
  15. } direntry ;
  16.  
  17. enum recursive                          /* Define recursion variable */
  18. {
  19.   RECURSE_NEVER,                        /* Process only files        */
  20.   RECURSE_ONCE,                         /* Process directory/files   */
  21.   RECURSE_ALWAYS                        /* Process recursively       */
  22. } ;  
  23.  
  24. enum boolean getdirentrys(              /* Get dir entries           */
  25.   const char *fname,
  26.   const enum recursive recursion,
  27.   enum boolean (*func)(
  28.       const char *path,
  29.       direntry *ptr)) ;
  30.  
  31. void beep(void) ;                       /* Sound beep                */
  32.  
  33. /*===================================================================*/
  34.